<div class="row-fluid">
<?php echo $this->Form->create('Site', array(
	'url' => array('controller' => 'systems', 'action' => 'setting', 'admin' => true),
	'class' => 'form-horizontal',
	'inputDefaults' => array('label' => false, 'div' => 'controls')
))?>
	<fieldset>
		<legend><?php echo __('Site Config') ?></legend>
		<div class="control-group">
			<label class="control-label" for="name"><?php echo __('Site name')?></label>
			<?php echo $this->Form->input('name', array(
				'id' => 'name',
				'class' => 'input-medium',
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for=maintenance_message><?php echo __('Maintenance message')?></label>
			<?php echo $this->Form->input('maintenance_message', array(
				'class' => 'input-medium',
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="online"><?php echo __('Maintenance')?></label>
			<?php echo $this->Form->radio('online', array(STATUS_ACTIVE => __('Yes'), STATUS_DISABLE=> __('No')), array(
				'id' => 'online',
				'class' => 'input-medium',
				'legend'=> false
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="locale"><?php echo __('Locale')?></label>
			<?php echo $this->Form->select('locale', Configure::read('site_support_language'), array(
				'id' => 'locale',
				'class' => 'input-mini',
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="timeout">Timeout</label>
			<?php echo $this->Form->input('timeout', array(
				'id' => 'timeout',
				'class' => 'input-mini',
			))?>
		</div>
		
		<div class="form-actions">
			<?php echo $this->Form->button('<i class="icon-pencil"></i> '.__('Submit'), array(
					'class' => 'btn btn-primary',
					'type' => 'submit',
					'value' => 'clicked',
					'name' => 'data[Submit]'
			))?>
			<?php echo $this->Form->button('<i class="icon-refresh"></i> '.__('Reset'), array( 
					'class' => 'btn',
					'type' => 'reset'
			))?>
		</div>
	</fieldset>

<?php echo $this->Form->end();?>
</div>